package com.gxa.entity.discrepancy;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-12 11:37:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_device_log")
@ApiModel(value = "DeviceLog对象", description = "")
public class DeviceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备日志编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("触发原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty("出发时间")
    @TableField("tigger_time")
    private Date tiggerTime;

    @ApiModelProperty("上报的设备id ")
    @TableField("device_id")
    private Integer deviceId;

    @TableLogic
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 事件类型 0 普通事件 1重大事件
     */
    @ApiModelProperty("事件类型 0 普通事件 1重大事件 ")
    @TableField(value = "event_type")
    private Integer eventType;

    /**
     * 事件描述
     */
    @ApiModelProperty("事件描述 ")
    @TableField(value = "event_desc")
    private String eventDesc;

    /**
     * 设备名字
     */
    @ApiModelProperty("设备名字 ")
    @TableField(value = "device_name")
    private String deviceName;




}
